package com.wn.ziroom.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wn.ziroom.entity.Order;

import java.math.BigDecimal;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wangzhijia
 * @since 2023-02-23 02:27:54
 */
public interface OrderService extends IService<Order> {

    int createNewOrder(long orderNumber, Integer userId, String provinces, String city, String area, String street, String village, String address, String productionId, BigDecimal total);

    void sendOrderNumberToQueue(String out_trade_no);

    void changeProductionStateToTwo(String productionOrderNumber);

    Order findOrderByOrderNumber(String productionOrderNumber);

    String checkOrderState(String orderNumber);

    void changeOrderStateToThree(String orderNumber);
}
